<!-- HTML header for doxygen 1.9.6-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.6"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>COMMONS-NET: commonsNet.nntp.Threader类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
  $(document).ready(function() { init_search(); });
/* @license-end */
</script>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">COMMONS-NET
   </div>
  </td>
    <td>        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <span id="MSearchSelect"                onmouseover="return searchBox.OnSearchSelectShow()"                onmouseout="return searchBox.OnSearchSelectHide()">&#160;</span>
          <input type="text" id="MSearchField" value="" placeholder="搜索" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.svg" alt=""/></a>
          </span>
        </div>
</td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.6 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('classcommonsNet_1_1nntp_1_1Threader.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pri-methods">Private 成员函数</a> &#124;
<a href="classcommonsNet_1_1nntp_1_1Threader-members.html">所有成员列表</a>  </div>
  <div class="headertitle"><div class="title">commonsNet.nntp.Threader类 参考</div></div>
</div><!--header-->
<div class="contents">

<p>一个消息线程算法的实现。  
 <a href="classcommonsNet_1_1nntp_1_1Threader.html#details">更多...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:ac72f6326865a6caef348094c2e6732dd"><td class="memItemLeft" align="right" valign="top">public static func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1nntp_1_1Threader.html#ac72f6326865a6caef348094c2e6732dd">thread&lt;E&gt;</a> (messages: Iterable&lt;E&gt;): ?E where E &lt;: <a class="el" href="interfacecommonsNet_1_1nntp_1_1Threadable.html">Threadable</a></td></tr>
<tr class="memdesc:ac72f6326865a6caef348094c2e6732dd"><td class="mdescLeft">&#160;</td><td class="mdescRight">客户端传入一个Threadable对象的列表，Threader构建一个连接的消息“图”  <br /></td></tr>
<tr class="separator:ac72f6326865a6caef348094c2e6732dd"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pri-methods" name="pri-methods"></a>
Private 成员函数</h2></td></tr>
<tr class="memitem:a7eaaca68d225c5df816f7a66a50e66d2"><td class="memItemLeft" align="right" valign="top">private static func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1nntp_1_1Threader.html#a7eaaca68d225c5df816f7a66a50e66d2">buildContainer</a> (threadable: <a class="el" href="interfacecommonsNet_1_1nntp_1_1Threadable.html">Threadable</a>, idTable: HashMap&lt;String, <a class="el" href="classcommonsNet_1_1nntp_1_1NntpThreadContainer.html">NntpThreadContainer</a>&gt;): Unit</td></tr>
<tr class="memdesc:a7eaaca68d225c5df816f7a66a50e66d2"><td class="mdescLeft">&#160;</td><td class="mdescRight">构建消息容器  <br /></td></tr>
<tr class="separator:a7eaaca68d225c5df816f7a66a50e66d2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aab29e3a31c433668cd75904af18a5346"><td class="memItemLeft" align="right" valign="top">private static func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1nntp_1_1Threader.html#aab29e3a31c433668cd75904af18a5346">findRootSet</a> (idTable: HashMap&lt;String, <a class="el" href="classcommonsNet_1_1nntp_1_1NntpThreadContainer.html">NntpThreadContainer</a>&gt;): <a class="el" href="classcommonsNet_1_1nntp_1_1NntpThreadContainer.html">NntpThreadContainer</a></td></tr>
<tr class="memdesc:aab29e3a31c433668cd75904af18a5346"><td class="mdescLeft">&#160;</td><td class="mdescRight">查找所有现有ThreadContainer的根集合  <br /></td></tr>
<tr class="separator:aab29e3a31c433668cd75904af18a5346"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ada89c5f6ebaeb574d39dd429683c4a1c"><td class="memItemLeft" align="right" valign="top">private static func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1nntp_1_1Threader.html#ada89c5f6ebaeb574d39dd429683c4a1c">gatherSubjects</a> (root: <a class="el" href="classcommonsNet_1_1nntp_1_1NntpThreadContainer.html">NntpThreadContainer</a>): Unit</td></tr>
<tr class="memdesc:ada89c5f6ebaeb574d39dd429683c4a1c"><td class="mdescLeft">&#160;</td><td class="mdescRight">如果根集合中的任何两个成员具有相同的主题，则将它们合并。这是为了尝试处理没有References头的消息。  <br /></td></tr>
<tr class="separator:ada89c5f6ebaeb574d39dd429683c4a1c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aea81225f5e0ec051cbfb5e706d1bb743"><td class="memItemLeft" align="right" valign="top">private static func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1nntp_1_1Threader.html#aea81225f5e0ec051cbfb5e706d1bb743">pruneEmptyContainers</a> (parent: <a class="el" href="classcommonsNet_1_1nntp_1_1NntpThreadContainer.html">NntpThreadContainer</a>): Unit</td></tr>
<tr class="memdesc:aea81225f5e0ec051cbfb5e706d1bb743"><td class="mdescLeft">&#160;</td><td class="mdescRight">删除任何空的或虚拟的ThreadContainer  <br /></td></tr>
<tr class="separator:aea81225f5e0ec051cbfb5e706d1bb743"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>一个消息线程算法的实现。 </p>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="a7eaaca68d225c5df816f7a66a50e66d2" name="a7eaaca68d225c5df816f7a66a50e66d2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7eaaca68d225c5df816f7a66a50e66d2">&#9670;&#160;</a></span>buildContainer()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">private static func commonsNet.nntp.Threader.buildContainer </td>
          <td>(</td>
          <td class="paramname"><em>threadable</em>:&#160;</td>
          <td class="paramtype">Threadable, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramname"><em>idTable</em>:&#160;</td>
          <td class="paramtype">HashMap&lt;String, NntpThreadContainer&gt;&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td>: Unit </td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>构建消息容器 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">threadable</td><td>可线程化的消息对象 </td></tr>
    <tr><td class="paramname">idTable</td><td>ID表 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="aab29e3a31c433668cd75904af18a5346" name="aab29e3a31c433668cd75904af18a5346"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aab29e3a31c433668cd75904af18a5346">&#9670;&#160;</a></span>findRootSet()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">private static func commonsNet.nntp.Threader.findRootSet </td>
          <td>(</td>
          <td class="paramname"><em>idTable</em>:&#160;</td>
          <td class="paramtype">HashMap&lt;String, NntpThreadContainer&gt;</td><td>)</td>
          <td>: <a class="el" href="classcommonsNet_1_1nntp_1_1NntpThreadContainer.html">NntpThreadContainer</a> </td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>查找所有现有ThreadContainer的根集合 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">idTable</td><td>ID表 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>root 表示根节点的NntpThreadContainer </dd></dl>

</div>
</div>
<a id="ada89c5f6ebaeb574d39dd429683c4a1c" name="ada89c5f6ebaeb574d39dd429683c4a1c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ada89c5f6ebaeb574d39dd429683c4a1c">&#9670;&#160;</a></span>gatherSubjects()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">private static func commonsNet.nntp.Threader.gatherSubjects </td>
          <td>(</td>
          <td class="paramname"><em>root</em>:&#160;</td>
          <td class="paramtype">NntpThreadContainer</td><td>)</td>
          <td>: Unit </td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>如果根集合中的任何两个成员具有相同的主题，则将它们合并。这是为了尝试处理没有References头的消息。 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">root</td><td>根节点 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="aea81225f5e0ec051cbfb5e706d1bb743" name="aea81225f5e0ec051cbfb5e706d1bb743"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aea81225f5e0ec051cbfb5e706d1bb743">&#9670;&#160;</a></span>pruneEmptyContainers()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">private static func commonsNet.nntp.Threader.pruneEmptyContainers </td>
          <td>(</td>
          <td class="paramname"><em>parent</em>:&#160;</td>
          <td class="paramtype">NntpThreadContainer</td><td>)</td>
          <td>: Unit </td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>删除任何空的或虚拟的ThreadContainer </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">parent</td><td>父节点 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ac72f6326865a6caef348094c2e6732dd" name="ac72f6326865a6caef348094c2e6732dd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac72f6326865a6caef348094c2e6732dd">&#9670;&#160;</a></span>thread&lt;E&gt;()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public static func commonsNet.nntp.Threader.thread&lt;E&gt; </td>
          <td>(</td>
          <td class="paramname"><em>messages</em>:&#160;</td>
          <td class="paramtype">Iterable&lt;E&gt;</td><td>)</td>
          <td>: ?E where E &lt;: <a class="el" href="interfacecommonsNet_1_1nntp_1_1Threadable.html">Threadable</a> </td>
        </tr>
      </table>
</div><div class="memdoc">

<p>客户端传入一个Threadable对象的列表，Threader构建一个连接的消息“图” </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">messages</td><td>要线程化的消息列表，不能为空 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>result 如果消息列表为空或root.child为空，则返回None </dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>src/nntp/<a class="el" href="threader_8cj.html">threader.cj</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- HTML footer for doxygen 1.9.6-->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="namespacecommonsNet.html">commonsNet</a></li><li class="navelem"><a class="el" href="namespacecommonsNet_1_1nntp.html">nntp</a></li><li class="navelem"><a class="el" href="classcommonsNet_1_1nntp_1_1Threader.html">Threader</a></li>
    <li class="footer">制作者 <img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.6 </li>
  </ul>
</div>
</body>
</html>
